package com.sky.mapper;


import com.github.pagehelper.Page;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.*;

@Mapper
public interface HistoryMapper {

    /*
* 历史订单查询
* */
    Page<OrderVO> histlistss(OrdersPageQueryDTO ordersPageQueryDTO);
/*
* 查询订单详情
* */
    @Select("select * from orders where id=#{id}")
    OrderVO selectByid(long id);
/*
* 根据id取消订单
* */
    @Update("update orders set status=#{status} where id=#{id} ")
    void Updatecancel(Orders orders);
/*
* 根据id查询订单
* */
    @Select("select * from orders where id=#{id}")
    Orders getBYid(long id);
}
